<form name="employeeeducation_edit" action="" id="employeeeducation_edit">
	<input type="hidden" value="{{employeeeducationid}}" id="employeeeducationid">
	<table>
		<tr>
			<td>_('employeeeducationfacultytitle')</td>
			<td><input type="text" name="employeeeducationfacultytitle" value="{{employeeeducationfacultytitle}}"></td>
		</tr>
		<tr>
			<td>_('employeeeducationdepartment')</td>
			<td><input type="text" name="employeeeducationdepartment" value="{{employeeeducationdepartment}}"></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<button type="button" class="btn btn-default btn-lg" onClick="createOrUpdateEmployeeEducation()">
					<span class="glyphicon glyphicon-ok"></span> _('save')
				</button>
				<button type="button" class="btn btn-default btn-lg" onClick="closeDialog()">
					<span class="glyphicon glyphicon-remove"></span> _('cancel')
				</button>
			</td>
		</tr>
	</table>
</form>
<script>
function createOrUpdateEmployeeEducation()
{
	var data = $('#employeeeducation_edit').serialize();
	var employeeEducationID = $("#employeeeducation_edit #employeeeducationid").val();
	if(employeeEducationID)
	{
		updateEmployeeEducation(data);
	}
	else
	{
		createEmployeeEducation(data);
	}
}
function closeDialog()
{
	$('#employeeeducationedit_dialog').dialog('close');	
}
</script>
